package com.zff.rental.mapper.apartment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zff.rental.entity.apartment.ApartmentEntity;
import com.zff.rental.po.apartment.RecommendApartmentPo;
import com.zff.rental.vo.apartment.apartment.ModifyApartmentSortParams;
import com.zff.rental.vo.apartment.apartment.RecommendApartmentListParams;
import com.zff.rental.vo.apartment.apartment.SimpleApartmentVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author HCY
 */
public interface ApartmentMapper extends BaseMapper<ApartmentEntity> {

    IPage<RecommendApartmentPo> recommendList(RecommendApartmentListParams params, Page<RecommendApartmentPo> page);

    void updateBatchSerialNumber(@Param("list") List<ModifyApartmentSortParams> list);

    List<SimpleApartmentVo> simpleApartmentList();

    void updateAudit(Long apartmentId, Byte auditStatus, String auditMsg);
}
